﻿@model BBICMS.Application.ViewModels.Front.ProductListBySerieVM
@{
    ViewBag.Title = Title.SeriesProducts;
    var serie = Model.Serie;
}


@section header{
    <link href="~/Content/iconfont/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="~/plugins/toastr/toastr.min.css" rel="stylesheet" />
}

@section featured{
    <div class="sitepath">
        <div class="container">
            <div class="row">
                @*<div class="col-xs-4">
                    <h1>@string.Format("{0}：{1}", EntityNames.Serie, serie.Title)</h1>
                </div>*@
                <div class="col-xs-8">
                    <ol class="breadcrumb">
                        <li><a href="@Url.Action("Index","Home")">@Menu.Home</a></li>
                        <li><a href="@Url.Action("Featured","Products")">@Title.Featured</a></li>
                        <li class="active">@ViewBag.Title</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
}

<div class="container  page-products" style="min-height:600px;">
    <div>
        <img src="@serie.Thumbnail" alt="" style="height:450px;"/>
    </div>
    <hr />
    <h3>@Model.Serie.Title</h3>
    <hr />
    <div class="row productlist">
        @foreach (var product in Model.ProductList)
        {
            Html.RenderPartial("_ProductBoxForSerie", product);
        }
    </div>
    <footer class="text-center">
       @Html.PagedListPager((IPagedList)Model.ProductList, page => Url.Action("Index", new
       {
           page
       }))
    </footer>
</div>


<form id="anti-form" method="post">
    @Html.AntiForgeryToken()
</form>

@section scripts {

    <script src="~/plugins/toastr/toastr.min.js"></script>
    <!-- pre load bg imgs -->
    <script type="text/javascript">
        $(function () {
            $(".menu>ul>li:nth-of-type(2) a").addClass("active");
             //收藏
            $('.item-collection').click(function (e) {
                e.preventDefault();
                var url = $(this).attr('data-url'), title = "@Title.Collection", that = $(this);

                Common.CollectionItem(url, title, that);

            });
        })

    </script>
}
